/* eslint-disable no-unused-vars */
// import { Slot } from 'vue';

export type FormItemConfig = {
  type: any;
  layout?: 'horizontal' | 'vertical' | 'inline';
  key?: string;
  name?: string | (string | number)[];
  label?: any;
  rules?: any[];
  colon?: boolean;
  hasFeedback?: boolean;
  labelAlign?: 'left' | 'right';
  labelCol?: Record<string, string | number>;
  wrapperCol?: Record<string, string | number>;
  required?: boolean;
  tooltip?: string;
  validateFirst?: boolean;
  validateStatus?: 'success' | 'warning' | 'error' | 'validating';
  validateTrigger?: string | string[];
  // extra?: string | Slot;
  // help?: string | Slot;
  model?: any;
  when?: (values: Partial<any>, currentValue?: Partial<any>) => boolean;
  attrs?: Partial<any>;
  children?: FormItemConfig[];
};
